<%--
  Created by IntelliJ IDEA.
  User: littleken
  Date: 2018/8/7
  Time: 11:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Littleken用户管理中心</title>
    <link rel="stylesheet" href="lib/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <script src="lib/2.2.4/jquery-1.12.4.min.js"></script>
    <script src="lib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="page-header">
            <h1>Littleken用户管理中心<small>用户数据管理中</small></h1>
        </div>
        <div class="row">
            <div class="jumbotron">
                <h1>MyBatis基础入门教程</h1>
                <p>通过一个项目完成基础部分学习</p>
                <p><a class="btn btn-primary btn-lg" href="#" role="button">查看更多</a></p>
            </div>
        </div>
    </div>
    <div class="row">
        <table class="table table-hover table-striped">
            <tr>
                <th>用户编号</th>
                <th>登录账号</th>
                <th>用户昵称</th>
                <th>邮箱</th>
                <th>联系方式</th>
                <th>账号创建时间</th>
                <th>用户状态</th>
                <th>操作方式</th>
            </tr>
            <c:forEach var="user" items="${usersList}">
            <tr>
                <th>${user.id}</th>
                <th>${user.username}</th>
                <th>${user.nickname}</th>
                <th>${user.email}</th>
                <th>${user.phone}</th>
                <th>${user.createTime}</th>
                <c:if test="${user.userStatus == 0}">
                    <th>正常</th>
                </c:if>
                <c:if test="${user.userStatus == 1}">
                    <th>锁定</th>
                </c:if>
                <c:if test="${user.userStatus == 2}">
                    <th>删除</th>
                </c:if>
                <th>
                    <a href="${pageContext.request.contextPath}/detail?id=${user.id}">查看</a>
                    <a href="">修改</a>
                    <a href="">删除</a>
                </th>
            </tr>
            </c:forEach>
        </table>
    </div>
</div>
</body>
</html>
